#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int my_strlen(char*p)
{
	//int i,count=0;
	//for (i = 0; *(p+i) != '\0'; i++)
	//{
		//count++;
	//}
	// 
	//while (*p)
	//{
		//count++;
		//p++;
	//}
	//return count;
	if (*p == '\0')
		return 0;
	return my_strlen(p + 1)+1 ;
}
int main()
{
	char arr[]="abced";
	printf("%d",my_strlen(arr));
	return 0;
}